package org.wyq.myweb.aspect;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class MonitorAspect {
	
	@Pointcut(value="execution(public * org.wyq.myweb..snapshot.*snapshot(..)")
	public void snapshot(){};
	
	@Around(value="snapshot()")
	public void around(ProceedingJoinPoint joinpoint){
		try {
			joinpoint.proceed();
		} catch (Throwable e) {
			e.printStackTrace();
		}
	}
	
	
	

}
